import request from '@/utils/request'
//5、查询所有的商品规格
export const FindAllProductSpec = () => {
  return request({
    url: `/admin/product/spec`,
    method: 'GET',
  })
}
//3、更新商品规格
export const UpdateProductSpec = data => {
  return request({
    url: `/admin/product/spec`,
    method: 'PUT',
    data,
  })
}
//3、新增商品规格
export const SaveProductSpec = data => {
  return request({
    url: `/admin/product/spec`,
    method: 'POST',
    data,
  })
}
//1、条件查询商品规格 分页数据
export const GetPage = (pageNum, pageSize) => {
  return request({
    url: `/admin/product/spec/page/${pageNum}/${pageSize}`,
    method: 'GET',
  })
}
//2、根据id删除
export const DeleteById = id => {
  return request({
    url: `/admin/product/spec/${id}`,
    method: 'DELETE',
  })
}
